<?php
// namespace resgister;
include 'database.php';

$servername = "localhost";
$username = "root";
$password = "";
$dbName = 'taodb';
$keyandchange = [];
$childrendata = [];

$body = json_decode(file_get_contents('php://input'),true);
$id = $body['id'];
$userpassword = md5($body['password']);
// DELETE FROM  $tableName  where id = 10";
$delete = new databaseClass\database($servername, $username, $password,$dbName);

$sql = "SHOW COLUMNS FROM project_fatherclass";
$delete->changetb("project_fatherclass");
$delete->sql = $sql;
$delete->query();
while($row = $delete->result->fetch_assoc()){
  // if ($row[0] === ) {
  //   # code...
  // }
};
  